﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MembersHome/MembersHome.Master"
    AutoEventWireup="true" CodeBehind="ToMyWeiBo.aspx.cs" Inherits="TCS.Web.MembersHome.ToMyWeiBo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../../My97DatePicker/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript">
        function SelectAll(tempControl) {
            //将除头模板中的其它所有的CheckBox取反  
            var theBox = tempControl;
            xState = theBox.checked;
            elem = theBox.form.elements;
            for (i = 0; i < elem.length; i++)
                if (elem[i].type == "checkbox" && elem[i].id != theBox.id) {
                if (elem[i].checked != xState)
                    elem[i].click();
            }
        }   
    </script>

    <h2 class="content_title">
        微博管理-提到我的</h2>
    <div class="search_if_if">
        <h3 class="title">
            查询条件</h3>
        <ul>
            <li class="radio_q"><em>状态：</em> <span>
               <span>
                    <asp:RadioButton ID="rdoRlayAll" runat="server" GroupName="status" 
                    Checked="True" /><label>全部</label></span>
                 <span>
                    <asp:RadioButton ID="rdoIsReplay" runat="server" GroupName="status" /><label>已回复</label></span>
                <span>
                    <asp:RadioButton ID="rdoNoReplay" runat="server" GroupName="status" /><label>未回复</label></span>
            </li>
            <li class="radio_q"><em>按人：</em> 
             <span>
                <asp:RadioButton ID="rdoAllPerson" runat="server" GroupName="person" 
                    Checked="True" /><label>全部</label></span>
            <span>
                <asp:RadioButton ID="rdoFirend" runat="server" GroupName="person" /><label>我关注的人</label></span>
                <span>
                    <asp:RadioButton ID="rdoFollwers" runat="server" GroupName="person" /><label>我的粉丝</label></span>
                <span>
                    <asp:RadioButton ID="rdoVerify" runat="server" GroupName="person" /><label>认证用户</label></span>
                <span>
                    <asp:RadioButton ID="rdoStranger" runat="server" GroupName="person" /><label>陌生人</label></span>
            </li>
            <li><em>字数：</em> <span>
                <label>
                    字数大于</label><asp:TextBox ID="txtCout" class="text_zi" runat="server"></asp:TextBox></span><span
                        class="ps">（默认为空，相当于全部）</span> </li>
            <li><em>时间：</em> <span>
                <asp:TextBox ID="txtStart" onClick="WdatePicker()" runat="server" class="time"></asp:TextBox></span>
                <span class="zhi">至</span> <span>
                    <asp:TextBox ID="txtEnd" onClick="WdatePicker()" runat="server" class="time"></asp:TextBox></span>
            </li>
            <li class="op_end"><span>
                <asp:Button ID="btnSearch" class="search_btn_weibo_manage" runat="server" 
                    Text="Button" onclick="btnSearch_Click" />
            </span><span class="clear_search_if"><a href="">清除查询条件</a></span> <span class="search_data">
                有<i><asp:Label ID="resultCount" runat="server" Text=""></asp:Label></i>条记录符合查询条件</span> </li>
            
        </ul>
    </div>
    <div class="checkbox_con">
        <span>
            <asp:CheckBox class="check_all" ID="cbHeader" runat="server" Text="" onclick="javascript:SelectAll(this);" /><label>全选</label></span>
        <span>
            <asp:Button ID="btnDelete" class="del_all" runat="server" Text="删除" OnClick="btnDelete_Click" />
        </span><span>
            <asp:Button ID="btnFriend" runat="server" class="gz_all" Text="关注" />
        </span>
    </div>
    <ul class="weibo_manage_list">
        <asp:Repeater ID="rptToMyWeibos" runat="server">
            <HeaderTemplate>
            </HeaderTemplate>
            <ItemTemplate>
                <li><span class="check_b">
                    <asp:CheckBox ID="chkItem" runat="server" />
                    <input id="hfID" runat="server" type="hidden" value='<%# Eval("id")%>' /></span>
                    <span class="head_pic"><a href='http://www.weibo.com/<%# Eval("user.id") %>' target="_blank">
                        <img src='<%# Eval("user.profile_image_url") %>' /></a></span>
                    <div class="weibo_man_nr">
                        <p>
                            <a href="" class="name">
                                <%# Eval("user.screen_name")%>
                            </a><span class="weibo_time">转发微博（ <%# SinaDateConvert(Eval("created_at"))%>)
                                <%# Eval("text")%></span></p>
                        <p class="op">
                            <a href="##" class="com_btn r">回复</a><span>评论我的微博:</span><span class="">
                            <a href='http://api.t.sina.com.cn/<%# Eval("retweeted_status.user.id") %>/statuses/<%# Eval("retweeted_status.id") %>'
                                    target="_blank">
                                <%# Eval("retweeted_status.text")%></a> </span>
                        </p>
                    </div>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</span>
</asp:Content>
